
//Config Lcdpin = Pin , Db4 = Portc.4 , Db5 = Portc.3 , Db6 = Portc.2 , Db7 = Portc.1 , E = Portc.7 , Rs = Portc.6


#define _DDR_RS		DDRC
#define _DDR_ENA	DDRC

#define _DDR_D0		DDRC
#define _DDR_D1		DDRC
#define _DDR_D2		DDRC
#define _DDR_D3		DDRC

#define _PR_RS		PORTC
#define _PR_ENA		PORTC

#define _PR_D0		PORTC
#define _PR_D1		PORTC
#define _PR_D2		PORTC
#define _PR_D3		PORTC

#define _PIN_D0		PINC
#define _PIN_D1		PINC
#define _PIN_D2		PINC
#define _PIN_D3		PINC

#define RS	6
#define RW	xxxx
#define ENA	7

#define D3	1
#define D2	2
#define D1	3
#define D0	4


#define S_RS	_PR_RS |= BIT(RS);
//#define S_RW	_PR_RW |= BIT(RW);
#define S_ENA	_PR_ENA |= BIT(ENA);
#define S_D0	_PR_D0 |= BIT(D0);
#define S_D1	_PR_D1 |= BIT(D1);
#define S_D2	_PR_D2 |= BIT(D2);
#define S_D3	_PR_D3 |= BIT(D3);

#define C_RS	_PR_RS &= ~BIT(RS);
//#define C_RW	_PR_RW &= ~BIT(RW);
#define C_ENA	_PR_ENA &= ~BIT(ENA);
#define C_D0 	_PR_D0 &= ~BIT(D0);
#define C_D1 	_PR_D1 &= ~BIT(D1);
#define C_D2 	_PR_D2 &= ~BIT(D2);
#define C_D3 	_PR_D3 &= ~BIT(D3);


